package xc.com.cms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import xc.com.cms.domain.CmsTemplate;
import xc.com.cms.repositor.CmsTemplateRepository;
import xc.com.cms.service.CmsTemplateService;

import java.util.List;
@Service
public class CmsTemplateServiceImpl implements CmsTemplateService {
    @Autowired
    private CmsTemplateRepository cmsTemplateRepository;

    @Override
    public List<CmsTemplate> findall() {
        return cmsTemplateRepository.findAll();
    }
}
